<template>
    <div class="dataDownload">
        <search-box class="search-view"/>
        <swiper :options="swiperOptions" :auto="2000" :height="165"/>
        <title-label class="bg-white" title="最新上传"/>
        <ul class="list">
            <li class="list-item" v-for="item in dataList" v-on:click="handleItemClick(item.id)">
                <div class="top">{{item.title}}</div>
                <div class="bottom">
                    <div class="left"><img src="../../assets/expert1.png" /></div>
                    <div class="right">
                        <div class="center mb12"><img src="../../assets/list-lecturer.svg">{{item.name}}</div>
                        <div class="center"><img src="../../assets/list-time.svg">{{item.date}}</div>
                        <div class="last">
                            <div class="center"><img src="../../assets/list-locate.svg">下载量：{{item.number}}</div>
                            <div class="radius">{{item.state}}</div>
                        </div>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</template>
<style lang="less" scoped>
    @import '../../style/variable';
    .dataDownload {
        .list {
            background-color: @color-white;
            padding-left: 1.5rem;
            &-item {
                border-bottom: 1px solid rgba(0,0,0,.1);
                padding: 1rem 0.7rem 1.9rem 0;
                display: flex;
                flex-direction: column;
                .top{
                    color: #333E48;
                    font-size: 1.5rem;
                    font-weight: 500;
                    margin-bottom: 1.3rem;
                }
                .bottom{
                    display: flex;
                    align-items: center;
                    .left {
                        width: 6.9rem;
                        height: 6.9rem;
                        margin-right: 1.1rem;
                        img {
                            height: 100%;
                        }
                    }
                    .right{
                        width: 100%;
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        font-size: 1.3rem;
                        img {
                            height: 1.4rem;
                            margin-right: 0.7rem;
                        }
                        .last {
                            width: 100%;
                            display: flex;
                            justify-content: space-between;
                            align-items: flex-end;
                            .btn {
                                display: flex;
                                align-items: center;
                                padding: 0.6rem;
                                border: 1px solid #949494;
                                border-radius: 0.3rem;
                                color: #7A7A7A;
                                img{
                                    margin-right: 0.5rem;
                                }
                            }
                            .radius {
                                font-size: 1.2rem;
                                color: #097FFF;
                                border-radius: 1.4rem;
                                background-color: #F0F0F7;
                                padding: 0.7rem 1.5rem;
                            }
                        }
                        .center{
                            display: flex;
                            align-items: center;
                        }
                        .mb12 {
                            margin-bottom: 1.2rem;
                        }
                    }
                }
            }
        }
    }
</style>
<script>
    import { Swipe, SwipeItem } from 'vant';
    export default {
        components: {
            [Swipe.name]: Swipe,
            [SwipeItem.name]: SwipeItem,
        },
        data() {
            return {
                swiperOptions: [
                    {
                        src: 'https://img.yzcdn.cn/public_files/2017/10/24/e5a5a02309a41f9f5def56684808d9ae.jpeg',
                        to: '/same'
                    },
                    'https://img.yzcdn.cn/public_files/2017/10/24/1791ba14088f9c2be8c610d0a6cc0f93.jpeg'
                ],
                dataList: [
                    {
                        title: '大金所·大固收同业沙龙(第一期)——5月勇征小黄山同业徒步交流活动圆满结束',
                        name: '天风证券债券研究孙彬彬团队',
                        number: '234',
                        date: '2018.12.14-2018.12.16',
                        state: '免费'
                    },
                    {
                        title: '房地产“真股权投资”产品设计、投前尽调与投后管理全流程解析',
                        name: '孙彬彬',
                        number: '2341',
                        date: '2018.12.14-2018.12.16',
                        state: '6.99'
                    },
                    {
                        title: '房地产“真股权投资”产品设计、投前尽调与投后管理全流程解析',
                        name: '中信证券',
                        number: '114',
                        date: '2018.12.14-2018.12.16',
                        state: '7.99'
                    },
                ]
            }
        },
        methods: {
            handleItemClick(id) {
                this.$router.push('/think/allDownload?id=' + id);
            }
        }
    }
</script>